import axios from 'axios';


let baseUrl = 'http://localhost:3000';


//商品展示接口
export const getGoodsDetails = params=>{
    return axios.get(`${baseUrl}/api/goodsDetails`, { params: params });
}

//获取商品列表接口
export const getGoodsList = params=>{
    return axios.get(`${baseUrl}/api/goodsLists`,{ params: params })
}
//获取banner列表接口
export const getBannerList = params=>{
    return axios.get(`${baseUrl}/api/bannerLists`,{ params: params })
}
//获取排行列表接口
export const getOrderList = params=>{
    return axios.get(`${baseUrl}/api/orderLists`,{ params: params })
}
//获取新鲜水果列表接口
export const getFreshList = params=>{
    return axios.get(`${baseUrl}/api/freshfruits`,{ params: params })
}
//获取水果菜单接口
export const getFruitsMenu = params=>{
    return axios.get(`${baseUrl}/api/fruitsmenu`,{ params: params })
}
//获取其他水果菜单接口
export const getOtherFruits = params=>{
    return axios.get(`${baseUrl}/api/fruitsmenu/other`,{ params: params })
}
//获取其他水果菜单接口
export const getSubList = params=>{
    return axios.get(`${baseUrl}/api/querybycate`,{ params: params })
}
// //获取短信验证码接口
// export const sendCodeToPhone = params=>{
//     return axios.get(`${baseUrl}/api/sendcode`,{params:params})
// }
